package com.joysuch.wwyt.edu.bean;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @author : pp
 * @date : Created in 2021/4/15 13:17
 */
@Data
public class PageParam {
    @ApiModelProperty(value = "页码，从 1 开始", required = true,example = "1")
    @NotNull(message = "页码不能为空")
//    @Min(value = 1, message = "页码最小值为 1")
    private Integer pageNum;

    @ApiModelProperty(value = "每页条数", required = true, example = "10")
    @NotNull(message = "每页条数不能为空")
//    @Range(min = 1, max = 100, message = "条数范围为 [1, 100]")
    private Integer pageSize;
}
